home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS14.ADF / Progs / QueryWB.c < prev    next >
C/C++ Source or Header  |  1989-01-28  |  2KB  |  39 lines

  1. /****************************************************************
  2. **                                                             **
  3. **  Program Name  - QueryWB                                    **
  4. **                                                             **
  5. **  Function      - Used in a startup-sequence.  Asks if the   **
  6. **                  user wants Workbench loaded.  Sets the     **
  7. **                  return to 0 if yes and to 5 if no.         **
  8. **                                                             **
  9. **  Input file    - None                                       **
  10. **                                                             **
  11. **  Output file   - None                                       **
  12. **                                                             **
  13. **  Written by    - John Frickson                              **
  14. **                                                             **
  15. **  Date Written  - 01-Sep-86                                  **
  16. **                                                             **
  17. **  Known Bugs    - None                                       **
  18. **                                                             **
  19. **  Maintenance   - None                                       **
  20. **                                                             **
  21. ****************************************************************/
  22.  
  23. #include "stdio.h"
  24.  
  25. main ()
  26.    {
  27.     char  c;
  28.  
  29.     printf ("Do you want to load Workbench? ");
  30.     c = getchar ();
  31.  
  32.     if (c == 'y' || c == 'Y')
  33.         exit (0);
  34.     else
  35.         exit (5);
  36.    }
  37.  
  38.  
  39.